#ifdef STANDALONE
#include <stdio.h>
void entry2(unsigned, int[]);
int main(int argc, char *argv[])
{
        int buffer[1000] = {0};
        entry(1000, buffer);

        for (int i = 0; i < 70; i++) {
                printf("%d ", buffer[i]);
        }
        printf("\n");
        return 0;
}
#endif

void entry2(unsigned buffer_size, int buffer[])
{
        if (buffer_size < 100) { return; }

        int *p = buffer;

        *p = 1;

        p++;
        *p++ = 2;

        p++;
        ++*p;

        p++;
        (*p)++;

        p++;

        *p++ = 15 + 17;
        *p++ = 15 - 17;
        *p++ = 15 * 17;
        *p++ = 150 / 17;
        *p++ = 150 % 17;
        *p++ = 150 << 17;
        *p++ = 150 >> 3;
        *p++ = 150 | 3;
        *p++ = 3 & 6;
        *p++ = 10 && 20;
        *p++ = 0 && 20;
        *p++ = 10 && 0;
        *p++ = 0 && (buffer[0] = 100);
        *p++ = 10 || 20;
        *p++ = 0 || 20;
        *p++ = 10 || 0;
        *p++ = 1 || (buffer[0] = 100);
        *p++ = 7 ^ 8;

        *p++ = 10 == 20;
        *p++ = 10 == 10;
        *p++ = 20 == 10;

        *p++ = 10 != 20;
        *p++ = 10 != 10;
        *p++ = 20 != 10;

        *p++ = 10 < 20;
        *p++ = 10 < 10;
        *p++ = 20 < 10;

        *p++ = 10 > 20;
        *p++ = 10 > 10;
        *p++ = 20 > 10;

        *p++ = 10 <= 20;
        *p++ = 10 <= 10;
        *p++ = 20 <= 10;

        *p++ = 10 >= 20;
        *p++ = 10 >= 10;
        *p++ = 20 >= 10;

        *p++ += 10;
        *p++ -= 10;

        *p = 100;
        *p++ *= 9;

        *p = 100;
        *p++ /= 9;

        *p = 100;
        *p++ %= 9;

        *p++ |= 9;

        *p = 7;
        *p++ &= 9;

        *p = 7;
        *p++ ^= 9;

        *p = 10;
        *p++ <<= 3;

        *p = 1000;
        *p++ >>= 3;

        *p++ = 99, *p++ = 98;

        *p++ = ~1000;
        *p++ = !1000;
        *p++ = !0;
        *p++ = -1000;
        *p++ = +1000;
}
